projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a45aed9
)
; * lisp/replace.el (occur-after-change-function): Fix logic mistake
author
Mattias Engdegård
<mattiase@acm.org>
Mon, 26 Jul 2021 07:15:04 +0000
(09:15 +0200)
committer
Mattias Engdegård
<mattiase@acm.org>
Mon, 26 Jul 2021 07:15:04 +0000
(09:15 +0200)
lisp/replace.el
patch
|
blob
|
history
diff --git
a/lisp/replace.el
b/lisp/replace.el
index f8c5fed55789e66170a62473685df05e8c454480..d0c63669159a7b6349d408bdc93b6db5db509c07 100644
(file)
--- a/
lisp/replace.el
+++ b/
lisp/replace.el
@@
-1407,9
+1407,9
@@
To return to ordinary Occur mode, use \\[occur-cease-edit]."
(common-prefix
(lambda (s1 s2)
(let ((c (compare-strings s1 nil nil s2 nil nil)))
- (if (
zero
p c)
- (
length s1
)
- (
1- (abs c)
)))))
+ (if (
number
p c)
+ (
1- (abs c)
)
+ (
length s1
)))))
(prefix-len (funcall common-prefix buf-str text))
(suffix-len (funcall common-prefix
(reverse buf-str) (reverse text))))